package cn.player.media.entity;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class BaseUrl {

	private String title;
	private String url;
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	
	public static Map<String,String> convertListToMap(List<BaseUrl> urls){
		Map<String,String> map = new HashMap<String, String>();
		for(BaseUrl url : urls){
			map.put(url.getTitle(), url.getUrl());
		}
		return map;
	}

}
